Skip to main content

PathOperationClosePath

Type​

statement

Summary​

Closes the current subpath of a path.

Syntax​

close path on <mPath>

Description​

Adds a line from the previous point to the start of current subpath, signaling the end of the subpath.

Parameters​

NameTypeDescription

mPath

An expression which evaluates to a path.

Examples​

// Create a new empty path
variable tPath as Path
put the empty path into tPath

// Begin a new subpath of tPath
move to point [25, 50] on tPath

// Continue path with a curve through 25,100 to 50,100
curve through [25,100] to [50,100] on tPath

// Close the path
close path on tPath
Thank you for your feedback!

Was this page helpful?